lunomobs:register_mob("lunomobs:spider1", {
	mob_name="ARANHA",
	type = "monster",
	hp_max = 4,
	xp_give = 7,
	visual = "mesh",
	--mesh = "mobs_spider.x",
	mesh = "mobs_spider.x",
	textures = {"mobs_spider1.png"},
	--collisionbox = {-0.8, -0.5, -0.8, 0.8, 0.5, 0.8}, 
	--visual_size = {x=8, y=8},
	collisionbox = {-0.4, -0.25, -0.4, 0.4, 0.25, 0.4}, 
	visual_size = {x=4, y=4},
	makes_footstep_sound = true,
	view_range = 15,
	walk_velocity = 2.0, --1.5
	run_velocity = 4.0, --3.0
	damage = 1,
	drops = {
		{name="farming:string", chance=10, min=1, max=4,}, -- Dropa Linha
	},
	--light_resistant = true,
	armor = 150,
	drawtype = "front",
	water_damage = 1,
	lava_damage = 5,
	light_damage = 5,
	disable_fall_damage=true, --Não leva dano quando cai do alto
	attack_type = "dogfight",
	animation = {
		speed_normal = 23, --15
		speed_run = 20,
		stand_start = 0,
		stand_end = 8,
		walk_start = 10,
		walk_end = 18,
		run_start = 10,
		run_end = 18,
		punch_start = 10,
		punch_end = 18,
	},
	sounds={ random="mobs_spider_random", attack="obj_chew", hit="mobs_spider_hit", die="mobs_spider_die", },
})

--lunomobs:register_spawn(name, nodes, max_light, min_light, chance, active_object_count, max_height, spawn_func)
lunomobs:register_spawn("lunomobs:spider1", {
	"default:leaves", "default:jungleleaves",
	"watershed:needles", "watershed:appleleaf", "watershed:acacialeaf", "watershed:jungleleaf",  
}, 	10, -1, 3000, 6, 62000)

minetest.register_craftitem("lunomobs:spider1", {
	description = "Aranha",
	groups = { mobs=1 },
	inventory_image = "mob_spider1.png",
	on_place = function(itemstack, placer, pointed_thing)
		if pointed_thing.above then
			minetest.env:add_entity(pointed_thing.above, "lunomobs:spider1")
			if not minetest.setting_getbool("creative_mode") then itemstack:take_item() end
		end
		return itemstack
	end,
})

minetest.register_alias("spider"	, "lunomobs:spider1")
minetest.register_alias("spider1"	, "lunomobs:spider1")
minetest.register_alias("aranha"	, "lunomobs:spider1")
